var ipAddress, wslocation, runningMode, menuid, tablename, username, roomStarted=false;

function setJson(ip, mode, menuId, tableName, userName){
    ipAddress = ip;
    runningMode = mode;
    tablename = tableName;
    username = userName;
    menuid = menuId;
}

/*
 *

function orderDish(tableName, paramMenuId, paramCourseId){
    alert("orderDish() is called!");
    if(!roomStarted){
        alert("orderDish() room.start()! ");
        //room.start(menuId, tableName, username);
    }
    room._send(JSON.stringify({
        command: "dish",
        tableName: tableName,
        menuId: paramMenuId,
        courseId: paramCourseId
    })); 
}
*/